package com.network.web.receipt;

import com.network.web.Client.WebClient;
import com.network.web.Client.WebResponseBody;
import com.network.web.api.BaiduApi;
import com.network.web.config.BaiduConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 28162
 */
@Slf4j
@Service
public class BaiduService {
    @Resource
    private BaiduConfig baiduConfig;

    @Resource
    private WebClient webClient;

    public WebResponseBody getHomePage() {
//        BaiduApi baiduApi = webClient.buildApi(baiduConfig.getUrl(), baiduConfig.getApiClass());
//        return webClient.processResponse(baiduApi.getHomePage(), baiduConfig.getUrl());

        System.out.println(baiduConfig);
        return null;
    }
}
